window: Use correct destroy notify for icon list
authorTimm Bäder <mail@baedert.org>
Mon, 23 Oct 2017 12:43:47 +0000 (14:43 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 23 Oct 2017 12:43:47 +0000 (14:43 +0200)
The list contains cairo_surface_t instances now, not GdkPixbuf anymore.

gtk/gtkwindow.c

index d0d1e454a52cd8f880ba8e322abeec8742003f3c..1e87600b98c239ca281ea80fcf64c97fcd2ffab5 100644 (file)
@@ -4529,7 +4529,7 @@ gtk_window_realize_icon (GtkWindow *window)
 
   if (info->using_themed_icon) 
     {
-      g_list_free_full (icon_list, g_object_unref);
+      g_list_free_full (icon_list, (GDestroyNotify)cairo_surface_destroy);
     }
 }